/* eslint-disable no-shadow */
// import { login, logout, getInfo } from '@/api/user';

const state = {
  title: '',
  articleList: [],
  wxaRecordsDetail: null, // 和缓医生问诊记录详情
  launchOptions: {}
};

const mutations = {
  SET_SERVICE_TITLE: (state, title) => {
    state.title = title;
  },
  SET_SERVICE_ARTICLELIST: (state, list) => {
    state.articleList = list;
  },
  setWxaRecordsDetail: (state, data) => {
    console.log('setWxaRecordsDetail data:', data);
    state.wxaRecordsDetail = data;
  },
  setLaunchOptions: (state, data) => {
    state.launchOptions = data;
  }
};

const actions = {
  // user login
};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
